LOCAL_PATH := $(call my-dir)

###############
#		Variable		#
###############
# save
include $(CLEAR_VARS)
LOCAL_MODULE := l9fish_shared
LOCAL_MODULE_FILENAME := libl9fish

#############
#		Source		#
#############
LOCAL_SRC_FILES := l9fish/main.cpp
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/../../Classes/SIX_Classes/*.cpp)

#################
#		Dependency		#
#################
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/../../../../Six_Framework/*.cpp)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/../../../../Six_Framework/Base_Interface/*.cpp)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/../../../../Six_Framework/Game_Interface/*.cpp)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/../../../../Six_Framework/JNI_Interface/*.cpp)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/../../../../Six_Framework/Stats_Interface/*.cpp)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/../../../../Six_Framework/Shared_Interface/*.cpp)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/../../../../Six_Framework/Net_Interface/*.cpp)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/../../../../Six_Framework/UI_Interface/*.cpp)
LOCAL_SRC_FILES += $(wildcard $(LOCAL_PATH)/../../../../Six_Framework/tinyxml/*.cpp)
LOCAL_SRC_FILES := $(LOCAL_SRC_FILES:$(LOCAL_PATH)/%=%)

###############
#		Headers		#
###############
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../Classes/SIX_Classes

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../CocosDenshion
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../CocosDenshion/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../extensions
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../extensions/network

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../Six_Framework
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../Six_Framework/Base_Interface
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../Six_Framework/Game_Interface
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../Six_Framework/JNI_Interface
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../Six_Framework/Shared_Interface
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../Six_Framework/Net_Interface
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../Six_Framework/UI_Interface
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../Six_Framework/Stats_Interface
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../Six_Framework/tinyxml

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../ThirdParty/TalkingData_2.0.7/include
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../ThirdParty/TalkingData_2.0.7/platform/android

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../../../GoodFrame/PUBLIC_H
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../../../GoodFrame/common
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../../../GoodFrame/APP_HEAD
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../../../../../GoodFrame/gameapp/fish/gamemsg

#############
#		Flags			#
#############
LOCAL_CFLAGS += $(TOOL_CFLAGS) -fpermissive
LOCAL_CFLAGS += -Wno-deprecated
LOCAL_CFLAGS += -std=c++11
#LOCAL_CFLAGS += -DTIXML_USE_STL

#############
#		Library		#
#############
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
#LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
#LOCAL_WHOLE_STATIC_LIBRARIES += chipmunk_static
LOCAL_WHOLE_STATIC_LIBRARIES += cocos2dx-talkingdata

###########
#		Build		#
###########
include $(BUILD_SHARED_LIBRARY)

###################
#		Import Module		#
###################
$(call import-module,cocos2dx)
$(call import-module,CocosDenshion/android)
$(call import-module,extensions)
$(call import-module,ThirdParty/TalkingData_2.0.7/proj.android/jni)